package com.seeingtv.service.impl;

import com.seeingtv.mapper.UserMapper;
import com.seeingtv.model.User;
import com.seeingtv.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author hubert
 * @date 2018/8/9
 * @description UserServiceImpl
 */
@Service
public class UserServiceImpl implements UserService{
	@Autowired
	private UserMapper userMapper;


	/**
	 * 通过用户名查询用户
	 *
	 * @param userName 用户名
	 * @return 用户对象信息
	 */
	@Override
	public User selectUserByLoginName(String userName) {
		return userMapper.selectUserByLoginName(userName);
	}
}
